<template>
  <tab-bar>
    <tab-BarItem path="/home">
      <template v-slot:item-icon>
        <img  src="~assets/img/tabbar/home.svg"/>
      </template>
      <template v-slot:item-text >
        <div >首页</div>
      </template>
    </tab-BarItem>

    <tab-BarItem path="/category">
      <template v-slot:item-icon>
        <img  src="~assets/img/tabbar/category.svg"/>
      </template>
      <template v-slot:item-text>
        <div >分类</div>
      </template>
    </tab-BarItem>

    <tab-BarItem path="/cart">
      <template v-slot:item-icon>
        <img  src="~assets/img/tabbar/shopcart.svg"/>
      </template>
      <template v-slot:item-text>
        <div >购物车</div>
      </template>
    </tab-BarItem>

    <tab-BarItem path="/profile">
      <template v-slot:item-icon>
        <img  src="~assets/img/tabbar/profile.svg"/>
      </template>
      <template v-slot:item-text>
        <div>我的</div>
      </template>
    </tab-BarItem>
  </tab-bar>
</template>

<script>
  import tabBar from '../../common/tabbar/TabBar'
  import tabBarItem from '../../common/tabbar/TabBar-Item'

    export default {
        name: 'MainTabBar',
      components:{
        tabBar,
        tabBarItem
      }
    }
</script>

<style scoped>

</style>
